//
//  NewCarInformationViewController.h
//  HondaPro_2
//
//  Created by ht on 13-8-21.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "popContentViewController.h"
#import "DDPopoverBackgroundView.h"
#import "CarCustomerInKeHuCell.h"
#import "QueryCustomerTableViewCell.h"
@interface NewCarInformationViewController :  UIViewController<UITableViewDataSource,UITableViewDelegate,ContentViewControllerDelegate,UITextFieldDelegate>
{
    UIViewController *panleCon;
    popContentViewController *contentCon;
    UIButton *_currentButton;
}

//添加一个flag
@property(nonatomic,strong)NSString * CLFlag;

@property(nonatomic,strong)UITableView *subNewTableView;
@property(nonatomic,strong)CarCustomerInKeHuCell *carCustomerInKeHuCell;
@property(nonatomic,strong)QueryCustomerTableViewCell *queryCustomerTableViewCell;

@property(nonatomic,strong)UITextField *carframe;
@property(nonatomic,strong)UIButton *manufacturer;
@property(nonatomic,strong)UITextField *licenseplate;
@property(nonatomic,strong)UIButton *model;
@property(nonatomic,strong)UITextField *engineField;
@property(nonatomic,strong)UITextField *transmissionField;
@property(nonatomic,strong)UITextField *Inparagraph;
@property(nonatomic,strong)UITextField *exhaust;
@property(nonatomic,strong)UIButton *transmissionType;

@property(nonatomic,strong)UIButton *insideColor;
@property(nonatomic,strong)UIButton *carClolr;
@property(nonatomic,strong)UIButton * chexiBtn;
@property(nonatomic,strong)NSString * chexiStr;
@property(nonatomic,strong)NSMutableArray * chexiArr;
@property(nonatomic,strong)UITextField *keyNumber;
@property(nonatomic,strong)UIButton *countriesCodeName;
@property(nonatomic,strong)UIButton *carUse;
@property(nonatomic,strong)UITextField *warrantyNumber;
@property(nonatomic,strong)UILabel *monthsOfNumber;

@property(nonatomic,strong)UIButton *insuranceCompany;
@property(nonatomic,strong)UIButton *PurchaseDate;
@property(nonatomic,strong)UIButton *DueDate;
@property(nonatomic,strong)UIButton *checkStartDate;
@property(nonatomic,strong)UIButton *buyDate;
@property(nonatomic,strong)UIButton *registrationDate;
@property(nonatomic,strong)UIButton *firstTimeDate;
@property(nonatomic,strong)UITextField *lastComingMileage;

@property(nonatomic,strong)UIDatePicker *datePicker;
@property(nonatomic,strong)UIPopoverController *popCon;

@property(nonatomic,strong)UIView *backgroundView;

@property(nonatomic,strong)UIButton *carMasterButton;
@property(nonatomic,strong)UIButton *saveButton;

@property(nonatomic,strong)UIButton *WarrantyOptions;

@property(nonatomic,strong)UILabel *baoXiuDaoQi;
@property(nonatomic,strong)UILabel *layerLabel;
@property(nonatomic,strong)UIButton *baoXiuDaoQiRi;
@property(nonatomic,strong)UILabel *baoXiuLiChen;
@property(nonatomic,strong)UITextField *liChenShuRu;

@property(nonatomic,strong)UILabel *baoxiangongsi;
@property(nonatomic,strong)UILabel *baoxiangoumai;
@property(nonatomic,strong)UILabel *baoxiandaoqi;
@property(nonatomic,strong)UIButton *baoxiangongsiBtn;//保险公司
@property(nonatomic,copy)NSString * baoxiangongsiID;
@property(nonatomic,strong)NSMutableArray * baoxiangongsiArray;
@property(nonatomic,strong)UIButton * baoxiangoumaiBtn;//保险购买Btn
@property(nonatomic,strong)UIButton * baoxiandaoqiBtn;//保险到期Btn


@property(nonatomic,strong)UIButton *carUserButton;
@property(nonatomic,strong)UIButton *carDrivingButton;

@property(nonatomic,strong)UIView *keHuPopView;

@property(nonatomic,strong)NSMutableArray *CarModifyDataArray;

@property(nonatomic,strong)NSMutableArray *manufacturerArray;

@property(nonatomic,strong)NSMutableArray *queryDataArray;
//*弹出框内容
@property(nonatomic,strong)UITableView *queryTableView;
@property(nonatomic,strong)UITextField *queryNumberField;
@property(nonatomic,strong)UITextField *queryNameField;

@property(nonatomic,strong)UIButton *queryButton;


//创建subview上的label
@property(nonatomic,strong)UILabel * KHBHLabel;//客户编号
@property(nonatomic,strong)UILabel * KHMCLabel;//客户名称
@property(nonatomic,strong)UILabel * KHXZLabel;//客户性质
@property(nonatomic,strong)UILabel * SJLabel;//手机
@property(nonatomic,strong)UILabel * LXDHLabel;//联系电话
@property(nonatomic,strong)UILabel * LXRLabel;//联系人
@property(nonatomic,strong)UILabel * LXDZLabel;//联系地址
//数据字典
@property(nonatomic,strong)NSMutableDictionary *carModifyDataDit;

//通用尼玛表
@property(nonatomic,strong)NSMutableDictionary *dicTmp;
//生产厂家
@property(nonatomic,strong)NSMutableArray *carShopArray;
@property(nonatomic,strong)NSString *carShopId;
//车型
@property(nonatomic , strong)NSMutableArray *carTypeArray;
@property(nonatomic , strong)NSString *carTypeId;
//内装颜色
@property(nonatomic,strong)NSMutableArray *carInerColorArray;
@property(nonatomic,strong)NSString *carInerColorId;
//车辆颜色
@property(nonatomic,strong)NSMutableArray *carColorArray;
//@property(nonatomic,strong)NSArray *carColorArray;
@property(nonatomic,strong)NSString *carColorId;
//车辆用途
@property(nonatomic,strong)NSMutableArray *carUseArray;
@property(nonatomic,strong)NSString * CarUseID;


//客户类型选择按钮
@property(nonatomic,strong)UIButton *customerTypeXy;
@property(nonatomic,strong)UIButton *customerTypePt;

@property(nonatomic,strong)NSMutableDictionary *queryRowData;

@property(nonatomic,strong)UITextField *importantNotice;
@property(nonatomic,strong)UITextField *remark;

-(void)addNotification;
-(void)removeNotification;


//从上一界面得到push过来的数据
@property(nonatomic,strong)NSString * cjhStr;
@property(nonatomic,strong)NSString * cphStr;
@property(nonatomic,strong)NSString * xhStr;
@property(nonatomic,strong)NSString * cxStr;
@property(nonatomic,strong)NSString * fdjhStr;
@property(nonatomic,strong)NSString * bsxhStr;
@property(nonatomic,strong)NSString * nkStr;
@property(nonatomic,strong)NSString * pqlStr;
@property(nonatomic,strong)NSString * bzStr;
@property(nonatomic,strong)NSString * nzysStr;
@property(nonatomic,strong)NSString * ClysStr;
@property(nonatomic,strong)NSString * yshStr;
@property(nonatomic,strong)NSString * clytStr;
@property(nonatomic,strong)NSString * bxgsStr;
@property(nonatomic,strong)NSString * bxgmrqStr;
@property(nonatomic,strong)NSString * bxdqrqStr;
@property(nonatomic,strong)NSString * gmrqStr;
@property(nonatomic,strong)NSString * sprqStr;
@property(nonatomic,strong)NSString * dyclcrqStr;
@property(nonatomic,strong)NSString * zhyclclcStr;

@property(nonatomic,strong)NSString * khbhStr;
@property(nonatomic,strong)NSString * khmcStr;
@property(nonatomic,strong)NSString * khxzStr;
@property(nonatomic,strong)NSString * sjStr;
@property(nonatomic,strong)NSString * lxdhStr;
@property(nonatomic,strong)NSString * lxrStr;
@property(nonatomic,strong)NSString * lxdzStr;
@end

